﻿<?php
include 'header.php';
include 'fun.php';
if(isset($_POST['year'])){
    $year=$_POST['year'];
}
else {$year=0;}
if(isset($_POST['month'])){
    $month=$_POST['month'];
}
else {$month=0;}
if(isset($_POST[day])){
    $day=$_POST[day];
}
else {$day=0;}

if($day!=0&$year!=0&$month!=0&$_GET['action']==OK){
     echo '<script languge=javascript>alert("修改截止日期成功！");</script>';
    $sql="update data set day=$day,month=$month,year=$year where id=1";
    sj($sql);
    
}
if(isset($_GET['page'])){
    $page=$_GET['page'];
}

else{
    $page=1;
}

if(isset($_GET['id'])){
    $id=$_GET['id'];
}
else{
    $id='我';
}

$count=($page-1)*20;
if($id=='我'){
$sql="select * from jianli  limit $count,20";

}
else{
   
    $sql="select * from jianli where department='$id'  limit $count,20";
    
}

$re=getarr($sql);
$number=count($re);
for($a=0;$a<$number;$a++){
?>
<div class="yinpin">
<?php echo "应聘者："?>
<a class="lin"href="operation.php?hang=<?php echo $a?>&page=<?php echo $page?>&
id=<?php echo $id?>">
<?php echo $re[$a]['name']?></a>
</div>
<?php }?>
<div class="page">
<?php for($a=5;$a>=1;$a--){?>
<a class="lin" href="operation2.php?page=<?php echo $page-$a?>"><?php if($page-$a>=1)
{echo "第",$page-$a,"页";}?></a>
<?php }?>
<?php echo "当前第",$page,"页"?>
<?php for($b=1;$b<=5;$b++){?>
<a class="lin" href="operation2.php?page=<?php echo $page+$b?>"><?php 
{echo "第",$page+$b,"页";}?></a>
<?php }?>

</div>
<div class="button">
<a href="operation2.php"><input type="button"value="查看全部"
style="width: 100px; height: 40px; font-size: 20px"/></a>
<a href="operation2.php?id=<?php echo "开发类"?>"><input type="button"value="开发类"
style="width: 80px; height: 40px; font-size: 20px"/></a>
<a href="operation2.php?id=<?php echo "设计类"?>"><input type="button"value="设计类"
style="width: 80px; height: 40px; font-size: 20px"/></a>
<a href="operation2.php?id=<?php echo "版主"?>"><input type="button"value="版主"
style="width: 80px; height: 40px; font-size: 20px"/></a>
<a href="operation2.php?id=<?php echo "运营"?>"><input type="button"value="运营"
style="width: 80px; height: 40px; font-size: 20px"/></a>


</div>
<div>
<form action="operation2.php?action=OK" method="post">
<select name='year'style="width: 60px; height: 30px;font-size: 15px">
<option value='2014'>2014</option>
<option value='2015'>2015</option>
<option value='2016'>2016</option>
</select>
<?php echo "年"?>
<select name="month" style="width: 60px; height: 30px;font-size: 15px">
<?php for($a=1;$a<13;$a++){?>
<option value=<?php echo $a;?>><?php echo $a?></option>
<?php }?>

</select>
<?php echo "月"?>
<select name="day"style="width: 60px; height: 30px;font-size: 15px">
<?php for($a=1;$a<32;$a++){?>
<option value=<?php echo $a;?>><?php echo $a?></option>
<?php }?>
</select>
<?php echo "日"?>

<div>
 <br>
<a ><input type="submit"value="更改截止时间"
style="width: 160px; height: 40px; font-size: 20px"/></a>
</div>
</form>
</div>


